package com.unicorn.modual.user.dao;

import com.unicorn.entity.Users;
import com.unicorn.entity.enums.DataStaus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/11/4.
 * 一般DAO
 */
@Repository
public interface UsersDao  extends JpaRepository<Users,Long>, JpaSpecificationExecutor,UsersDaoCustom {

    List<Users> findByIsDelete(DataStaus exist);


    Users findByIdAndIsDelete(Long id, DataStaus exist);
}
